﻿'use strict';

define([
    'backgrid',
], function (Backgrid) {
    //****************
    //InputCell
    //****************
    Backgrid.InputCellEditor.prototype.postRender = function (model, column) {
        if (column == null || column.get("name") == this.column.get("name")) {
            //// move the cursor to the end on firefox if text is right aligned
            //if (this.$el.css("text-align") === "right") {
            //    var val = this.$el.val();
            //    this.$el.focus().val(null).val(val);
            //}
            //else this.$el.focus();
            this.$el.focus()
                    .select();

        }
    };

    return Backgrid;
});